package com.example.nowcodercommunity.dao.elasticsearch;


import com.example.nowcodercommunity.entity.DiscussPost;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DiscussPostRepository extends ElasticsearchRepository<DiscussPost, Integer> {

    List<DiscussPost> findDiscussPostsByContentContainsOrderByTypeDescScoreDescCreateTimeDesc(String content);
}
